﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BIS.Portal.Modules.CMS.DAL;
using BIS.Portal.Modules.CMS.Entity;

namespace BIS.Portal.Modules.CMS.BO
{
    public class AdminCmsArticleInCategoryBO
    {
        /// <summary>
        /// Updates the status.
        /// </summary>
        /// <param name="articleId"></param>
        /// <param name="status">The status.</param>
        public static IList<AdminCmsArticleInCategoryEntity> GetCategoryId(int articleId)
        {
            return AdminCmsArticleInCategoryDAL.GetCategoryId(articleId);
        }
        /// <summary>
        /// Delete
        /// </summary>
        /// <param name="articleId"></param>
        /// <returns></returns>
        public static bool DeleteData(int articleId)
        {
            return (AdminCmsArticleInCategoryDAL.DeleteData(articleId) > 0);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="cmsArticleInCategoryEntity"></param>
        /// <returns></returns>
        public static bool InsertData(AdminCmsArticleInCategoryEntity entity)
        {
            return (AdminCmsArticleInCategoryDAL.InsertData(entity) > 0);
        }
    }
}
